a = int(input())
while a % 10 == 0:
	print(a)